/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.market.entity;

import org.hibernate.validator.constraints.Length;

import com.kaaction.common.persistence.DataEntity;
import com.kaaction.modules.operate.entity.Channel;

/**
 * 活动与渠道Entity
 * @author zengbiao
 * @version 2017-04-20
 */
public class EventChannel extends DataEntity<EventChannel> {
	
	private static final long serialVersionUID = 1L;
	private String eventId;		// event_id
	private Channel channel;		// channel_id
	private String status;		// status
	private String url;		// url
	private String qrcode;		// qrcode
	
	private int clickNum;
	private int joinNum;
	
	public EventChannel() {
		super();
	}
	
	public EventChannel(String id){
		super(id);
	}

	@Length(min=1, max=64, message="eventId长度必须介于 1 和 64 之间")
	public String getEventId() {
		return eventId;
	}

	public void setEventId(String eventId) {
		this.eventId = eventId;
	}

	public Channel getChannel() {
		return channel;
	}

	public void setChannel(Channel channel) {
		this.channel = channel;
	}

	@Length(min=0, max=1, message="status长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=200, message="url长度必须介于 0 和 200 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	@Length(min=1, max=1000, message="qrcode长度必须介于 1 和 1000 之间")
	public String getQrcode() {
		return qrcode;
	}

	public void setQrcode(String qrcode) {
		this.qrcode = qrcode;
	}

	public int getClickNum() {
		return clickNum;
	}

	public void setClickNum(int clickNum) {
		this.clickNum = clickNum;
	}

	public int getJoinNum() {
		return joinNum;
	}

	public void setJoinNum(int joinNum) {
		this.joinNum = joinNum;
	}
	
}